Runtime type identification
From Cppreference
Template:cpp/utility/rtti/sidebar
Contents |
[edit] typeid
Language built-in operator. Queries information about a type or expression and returns type_info object corresponding to the type.
See typeid operator.
[edit] type_info
The class type_info describes type information of a type, generated by the implementation. This is the class, returned by the typeid operator.
[edit] type_index
The class type_index is a wrapper around a type_info object, that can be used as index in associative and unordered associative containers.
[edit] bad_typeid
The class bad_typeid is the type of the object that is thrown if the argument in a typeid expression is null.
[edit] bad_cast
The class bad_cast is the type of the object that is thrown by an invalid dynamic_cast expression. The standard explicitly defines it will be thrown when a cast to a reference type fails.| This section is incomplete |